package com.sync.utils.common.validation.annotation;

import com.sync.utils.common.validation.annotation.impl.StrictEmailValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * 自定义校验注解
 *
 * @Author YWF
 * @Date 2025/5/8 16:59
 */

@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = StrictEmailValidator.class )
public @interface StrictEmail {

    String message() default "请输入有效的电子邮件地址";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
